package cn.com.cifi.mars.constant;

/**
 * 维度
 * @author Li
 *
 */
public enum DimensionEnum {
	
    A("a","储"),
    B("b","产"),
    C("c","供"),
    D("d","销"),
    E("e","存"),
    F("f","结"),
    G("g","回")
    ;
	
    private String key;
    private String value;

    DimensionEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
        for(DimensionEnum fetchNnumberEnum:DimensionEnum.values()){
            if(key.equals(fetchNnumberEnum.getValue())){
                return fetchNnumberEnum.getKey();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
